﻿CREATE TABLE [dbo].[ProductDetailTemplate] (
    [TemplateID]    BIGINT  NOT NULL,
    [ProductBaseID] BIGINT  NOT NULL,
    [Postion]       TINYINT NOT NULL,
    [Sort]          INT     NOT NULL,
    CONSTRAINT [PK_PRODUCTDETAILTEMPLATE] PRIMARY KEY CLUSTERED ([TemplateID] ASC, [ProductBaseID] ASC, [Postion] ASC)
);


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'排序', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'ProductDetailTemplate', @level2type = N'COLUMN', @level2name = N'Sort';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'展示位置', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'ProductDetailTemplate', @level2type = N'COLUMN', @level2name = N'Postion';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'商品基本信息标识', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'ProductDetailTemplate', @level2type = N'COLUMN', @level2name = N'ProductBaseID';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'模板标识', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'ProductDetailTemplate', @level2type = N'COLUMN', @level2name = N'TemplateID';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'商品详情模板', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'ProductDetailTemplate';

